import Vue from 'vue'
import Vuex from 'vuex'

Vue.use(Vuex)

const store = new Vuex.Store({
  state: {
    // 设备信息
    systemInfo: {},
    // 胶囊位置信息
    capsule: {}
  },
  mutations: {
    systemInfo: (state, value) => {
      state.systemInfo = value
    },
    capsule: (state, value) => {
      state.capsule = value
    }
  }
})

export default store
